package lab02.test09;

public class Student {
    //属性：“学号”、“班号”、“姓名”、“性别”、“年龄”
    private String no;
    private int classno;
    private String name;
    private String gender;
    private int age;

    public String toString(){
        return "学号:"+no+"\n"+"班级："+classno+"\n"+"姓名："+name+"\n"+ "性别："+gender+"\n"+"年龄："+age;
    }

    Student(){}
    Student(String no,int classno,String name,String gender,int age){
        this.no = no;
        this.classno = classno;
        this.name = name;
        this.gender = gender;
        this.age = age;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public int getClassno() {
        return classno;
    }

    public void setClassno(int classno) {
        this.classno = classno;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}

